﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Toenda.Foundation {
	/// <summary>
	/// Class ListExtensions
	/// </summary>
	public static class ListExtensions {
		/// <summary>
		/// Maxes the capacity reached.
		/// </summary>
		/// <typeparam name="T"></typeparam>
		/// <param name="instance">The instance.</param>
		/// <param name="maxValue">The max value.</param>
		/// <returns></returns>
		public static bool MaxCapacityReached<T>(this List<T> instance, long maxValue) {
			if(instance.Count > maxValue) {
				return true;
			}
			else {
				return false;
			}
		}
	}
}
